package com.ag.wsq.action;

import org.apache.log4j.Logger;

import com.ag.common.AjaxNotify;
import com.ag.common.BaseAction;
import com.ag.wsq.service.impl.SchedServiceImpl;

@SuppressWarnings("serial")
public class DelSchedAction extends BaseAction {
	private static final Logger logger = Logger.getLogger(DelSchedAction.class);
	private SchedServiceImpl schedServiceImpl;
	
	private String ajaxRst;
	private String id;
	/**
	 * 根据ID删除值班人员
	 * 
	 * @return
	 */

	public String delSchedById() {
		try {
			logger.info("print id---"+id);
			schedServiceImpl.delete(id);
			ajaxRst = AjaxNotify.SUCCESS;
			return "operate";
		} catch (Exception e) {
			e.printStackTrace();
			ajaxRst = AjaxNotify.EXCEPTION;
			return "operate";
		}
	}
	

	public String getAjaxRst() {
		return ajaxRst;
	}

	public void setAjaxRst(String ajaxRst) {
		this.ajaxRst = ajaxRst;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}


	public SchedServiceImpl getSchedServiceImpl() {
		return schedServiceImpl;
	}


	public void setSchedServiceImpl(SchedServiceImpl schedServiceImpl) {
		this.schedServiceImpl = schedServiceImpl;
	}

}
